import request from '@/utils/request'

// api地址
const api = {
  all: '/mxty/referee/all',
  refereeInfo: '/mxty/arena/refereeInfo',
}

// 获取所有裁判
export const all = (param) => {
  return request.get(api.all, param)
}

/**
 * 获取指定日期和时段下是否有裁判已被预订
 * $date 日期，如 2021-09-23
 * $timeFragment 时间段，如 08:33
 */
export const refereeInfo = (param) => {
  return request.get(api.refereeInfo, param)
}